import { BASE_URL } from '@/config';
import { request } from '@/utils/request';

/**
 * 愿望清单相关接口
 */

// 根据区域查询愿望榜单
export function getWishlistByRegion(regionId: string) {
  return request({
    url: `${BASE_URL}/user/wishlists/region/${regionId}`,
    method: 'GET'
  });
}

// 添加愿望
export interface AddWishlistRequest {
  content: string;
  description?: string;
}

export function addWishlist(regionId: string, customerId: string, data: AddWishlistRequest) {
  return request({
    url: `${BASE_URL}/user/wishlists/add/${regionId}/${customerId}`,
    method: 'POST',
    data
  });
}